/*
 * @Author: 筱洛 3259871097@qq.com
 * @Date: 2025-04-09 17:01:37
 * @LastEditors: 筱洛 3259871097@qq.com
 * @LastEditTime: 2025-04-09 20:54:49
 * @FilePath: \Exam system\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router';
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
import Student from '../views/Student.vue';
import Teacher from '../views/Teacher.vue';
import Admin from '../views/Admin.vue';
import Forgot from '../views/Forgot.vue';

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/student',
    name: 'Student',
    component: Student
  },
  {
    path: '/teacher',
    name: 'Teacher',
    component: Teacher
  },
  {
    path: '/admin',
    name: 'Admin',
    component: Admin
  },
  {
    path: '/forgot',
    name: 'Forgot',
    component: Forgot
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;